import { Button, Drawer, DrawerProps } from "antd"
import { memo } from "react";
import { IFormRef } from "../../../types";
import { IBeef } from "../../../service/beef/beef-service";


type IStepFormParams = {
    beef: IBeef;
    open: boolean;
    onRef: React.MutableRefObject<IFormRef | undefined>;
    openFn: (open: boolean) => void;
} & DrawerProps


const StepForm = ({ beef, open, onRef, openFn }: IStepFormParams) => {
    const saveHandler = () => {

    }

    return <Drawer title={'处理矛盾纠纷'} placement="right" width={'40rem'} closable={true} onClose={() => openFn(false)} forceRender={true} open={open} footer={
        <Button onClick={() => { saveHandler(); }}>
            保存
        </Button>
    }>

        

                //todo1 签收
                //todo2 指派人员处理
                //todo3 调解
    </Drawer>
}



export default memo(StepForm);